package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_user_friend;

import cn.com.api.mapper.ApiU_user_friendMapper;

import cn.com.api.service.ApiU_user_friendService;

/**
 * 
 **/
@Service
public class U_user_friendServiceImplBase {
	@Autowired
	private ApiU_user_friendMapper apiU_user_friendMapper;
    
    // 根据id获取
	public ApiU_user_friend findU_user_friendById(Integer id){
		ApiU_user_friend u_user_friend = apiU_user_friendMapper.findU_user_friendById( id );
		return u_user_friend;
	}
    
    //查看数据集
	public List<ApiU_user_friend> findU_user_friends(){
        List<ApiU_user_friend> u_user_friends = apiU_user_friendMapper.findU_user_friends();
		return u_user_friends;
    }
    
	// 添加
	public int insertU_user_friend(ApiU_user_friend u_user_friend){
		int ret_I= apiU_user_friendMapper.insertU_user_friend(u_user_friend);
		return ret_I;
	}

	// 修改
	public int updateU_user_friend(ApiU_user_friend u_user_friend){
		int ret_I= apiU_user_friendMapper.updateU_user_friend(u_user_friend);
		return ret_I;
	}
	
    // 删除
	public int deleteU_user_friend(Integer id){
		int ret_I= apiU_user_friendMapper.deleteU_user_friend( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


